/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.elookinto.kw;

import java.io.BufferedReader;
import java.io.*;

/**
 *
 * @author zw251y
 */
public class TopicGen {
    
    public static void main(String s[]) throws Exception {
        
        BufferedReader br = new BufferedReader(new FileReader("C:\\Users\\zw251y\\Documents\\NetBeansProjects\\blackhat\\src\\main\\resources\\ant-aging.txt"));
        String line=null;
        FileWriter fw = new FileWriter("c:/zhou/anti-aging.html");
        while ((line = br.readLine())!=null){
            String line1= java.net.URLEncoder.encode(line);
            fw.append("<a href='/search?q="+line1 +"'>"+line +"</a><br/>\n");
            
        }
        fw.flush();
        fw.close();
        br.close();
    }
    
}
